import request from '@/utils/request'

//获取teacher信息
export function getAllTeacherInfo(pageNum,pageSize) {
  return request({
    url: '/admin/getAllTeacherInfo',
    method: 'get',
    params:{
      pageNum,
      pageSize
    }
  })
}

//增加teacher信息
export function addTeacher(data) {
  return request({
    url: '/admin/addTeacher',
    method: 'post',
    data
  })
}

//修改teacher信息
export function editTeacherInfoById(data) {
  return request({
    url: '/admin/editTeacherInfoById',
    method: 'post',
    data
  })
}

//根据teacherid查询
export function getTeacherInfoById(data) {
  return request({
    url: '/admin/getTeacherInfoById',
    method: 'post',
    data
  })
}

//根据teachername查询
export function getTeacherInfoByName(data) {
  return request({
    url: '/admin/getTeacherInfoByName',
    method: 'post',
    data
  })
}

//删除student信息
export function deleteTeacherById(data) {
  return request({
    url: '/admin/deleteTeacherById',
    method: 'post',
    data
  })
}
